package com.backstage.service;


import com.backstage.pojo.dto.Message;
import com.backstage.pojo.vo.ArticleVo;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface ArticleService {

    /**
     * 根据条件查询所有动态
     */
    public Message<List<ArticleVo>> getAllArticle(ArticleVo articleVo);

    /**
     * 根据动态的id查询某条动态
     */

    public Message<ArticleVo> getArticle(ArticleVo articleVo);
    /**
     * 根据动态的id删除某条动态
     */
    public Message<String> deleteArticleById(Long id);

    /**
     * 添加动态
     */
    public Message<String> addArticle(ArticleVo article);

    /**
     * 修改动态
     */
    public Message<String> updateArticle(ArticleVo article);


    Message<List<ArticleVo>> getState(ArticleVo articleVo);
}
